package com.cloudsigns.factorymanager2.project.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.cloudsigns.factorymanager2.R;
import com.cloudsigns.factorymanager2.project.activity.AddControlPermissionAddressActivity;
import com.cloudsigns.factorymanager2.project.adapter.PersonnelControlPermissionAdapter;

public class PersonnelControlPermissionFragment extends Fragment implements View.OnClickListener{
    private String TAG=PersonnelControlPermissionFragment.class.getSimpleName();
    private ImageView img_add_control_permission;
    private PersonnelControlPermissionAdapter adapter;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_personne_control_permission,container,false);
        img_add_control_permission=view.findViewById(R.id.img_add_control_permission);

        img_add_control_permission.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View view) {
        Intent mIntent;
        switch (view.getId()){
            // 添加管控权限
            case R.id.img_add_control_permission:
                mIntent=new Intent(getActivity(),AddControlPermissionAddressActivity.class);
                startActivity(mIntent);
                break;
        }
    }
}
